import { createParamDecorator } from "@nestjs/common";

export const User = createParamDecorator((data, ctx) => {
  console.log(data, ctx.switchToHttp);
  const req = ctx.switchToHttp().getRequest();
  return req.user;
});
